![]() |
Kinetis SDK API Reference Manual
1.0.0-beta
Freescale Semiconductor, Inc.
|
#include <assert.h>#include <stdint.h>#include <stdbool.h>#include "fsl_adc_features.h"#include "fsl_device_registers.h"Functions | |
| adc_status_t | adc_hal_start_calibration (uint32_t instance) |
| Starts the calibration process. More... | |
| static void | adc_hal_end_calibration (uint32_t instance) |
| Ends the calibration process. More... | |
| uint32_t | adc_hal_get_calibration_PG (uint32_t instance) |
| Gets and calculates the plus-side calibration parameter. More... | |
| static void | adc_hal_set_calibration_PG (uint32_t instance, uint32_t val) |
| Sets the plus-side calibration parameter to the ADC instance. More... | |
| uint32_t | adc_hal_get_calibration_MG (uint32_t instance) |
| Gets and calculates the minus-side calibration parameter. More... | |
| static void | adc_hal_set_calibration_MG (uint32_t instance, uint32_t val) |
| Sets the minus-side calibration parameter to the ADC instance. More... | |
| static uint32_t | adc_hal_get_calibration_offset (uint32_t instance) |
| Gets the offset value after the auto-calibration. More... | |
| static void | adc_hal_set_calibration_offset (uint32_t instance, uint32_t value) |
| Sets the offset value for manual calibration. More... | |
| static void | adc_hal_set_clock_source_mode (uint32_t instance, adc_clock_source_mode_t mode) |
| Sets the selection of the clock source. More... | |
| static void | adc_hal_configure_asynchronous_clock (uint32_t instance, bool isEnabled) |
| Switches the asynchronous clock on/off. More... | |
| static void | adc_hal_set_clock_divider_mode (uint32_t instance, adc_clock_divider_mode_t mode) |
| Sets the selection of the clock divider. More... | |
| static void | adc_hal_set_reference_voltage_mode (uint32_t instance, adc_reference_voltage_mode_t mode) |
| Sets the selection of the reference voltage source. More... | |
| static void | adc_hal_configure_high_speed (uint32_t instance, bool isEnabled) |
| Switches the high speed mode on/off . More... | |
| static void | adc_hal_configure_long_sample (uint32_t instance, bool isEnabled) |
| Switch the long sample mode on/off. More... | |
| static void | adc_hal_set_long_sample_mode (uint32_t instance, adc_long_sample_mode_t mode) |
| Sets the selection of the long sample mode. More... | |
| static void | adc_hal_configure_low_power (uint32_t instance, bool isEnabled) |
| Switches the low power mode on/off. More... | |
| static void | adc_hal_set_resolution_mode (uint32_t instance, adc_resolution_mode_t mode) |
| Sets the selection of the resolution mode. More... | |
| static void | adc_hal_configure_continuous_conversion (uint32_t instance, bool isEnabled) |
| Switches the continuous conversion mode on/off. More... | |
| static void | adc_hal_configure_hw_trigger (uint32_t instance, bool isEnabled) |
| Switches the hardware trigger mode on/off . More... | |
| static void | adc_hal_configure_hw_average (uint32_t instance, bool isEnabled) |
| Switches the hardware average mode on/off. More... | |
| static void | adc_hal_set_hw_average_mode (uint32_t instance, adc_hw_average_mode_t mode) |
| Sets the selection of the hardware average mode. More... | |
| static void | adc_hal_configure_hw_compare (uint32_t instance, bool isEnabled) |
| Switches the hardware compare mode on/off. More... | |
| static void | adc_hal_configure_hw_compare_greater (uint32_t instance, bool isEnabled) |
| Switches the hardware compare greater configuration on/off . More... | |
| static void | adc_hal_configure_hw_compare_in_range (uint32_t instance, bool isEnabled) |
| Switches the hardware compare range configuration on/off . More... | |
| static void | adc_hal_set_hw_compare_value1 (uint32_t instance, uint32_t value) |
| Sets the value1 in the hardware compare. More... | |
| static void | adc_hal_set_hw_compare_value2 (uint32_t instance, uint32_t value) |
| Sets the value2 in the hardware compare. More... | |
| static void | adc_hal_configure_dma (uint32_t instance, bool isEnabled) |
| Switches the ADC DMA trigger on/off. More... | |
| static void | adc_hal_disable (uint32_t instance, uint32_t group) |
| Switches off the ADC channel conversion. More... | |
| static void | adc_hal_enable (uint32_t instance, uint32_t group, adc_channel_mode_t mode, bool isDifferential) |
| Sets the channel number and switches on the conversion. More... | |
| static void | adc_hal_configure_interrupt (uint32_t instance, uint32_t group, bool isEnabled) |
| Switches the ADC interrupt trigger on/off . More... | |
| static bool | adc_hal_is_in_process (uint32_t instance) |
| Checks whether the ADC is in process. More... | |
| static bool | adc_hal_is_conversion_completed (uint32_t instance, uint32_t group) |
| Checks whether the channel conversion is complete. More... | |
| static bool | adc_hal_is_calibration_fail (uint32_t instance) |
| Checks whether the calibration failed. More... | |
| static uint32_t | adc_hal_get_conversion_value (uint32_t instance, uint32_t group) |
| Gets the conversion value. More... | |
| static void | adc_hal_set_group_mux (uint32_t instance, adc_group_mux_mode_t group) |
| Sets the current group mux that executes the conversion. More... | |